I create a module type and I want to find the value of the Module Type in a module. This code give me an error message:
Can somebody help me ?
bu12 - Mon Feb 23 07:16:57 EST 2015 |
Re: Find Module type AttrDef ad = find (m, "Module Type") ? |
Re: Find Module type Wolfgang Uhr - Tue Feb 24 02:47:47 EST 2015 AttrDef ad = find (m, "Module Type") ? My code give me now "LH" and other module attributes like "Last modifed on" or "Created on". But I need only "LH". Can somebody help me ?
|
Re: Find Module type You can try:
result = probeAttr_(m, "Module Type") If this does not work, use the following:
string readModuleProperty(ModName_ mn, string sName) {
ModuleProperties modProp
string result = null
ModuleVersion mv = moduleVersion mn
string errString = getProperties (mv, modProp)
delete mv
string attrname
if (null errString) {
for attrname in modProp do {
if (attrname == sName)
result = (modProp.sName) ""
}
}
return result
}
|